package com.example.mybatisplus.service;

import com.example.mybatisplus.model.domain.FavouriteMovie;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author fmx
 * @since 2024-11-09
 */
public interface FavouriteMovieService extends IService<FavouriteMovie> {

    List<FavouriteMovie> getFavouriteMoviesByUserId(Long userId);
    FavouriteMovie saveFavouriteMovie(FavouriteMovie favouriteMovie);
    int deleteByMvId(Long mvId);
    // 根据用户id和电影名判断是否已收藏
    boolean isFavourited(FavouriteMovie favouriteMovie);
}
